range: Fix get_range_rect
authorTimm Bäder <mail@baedert.org>
Fri, 30 Jun 2017 11:21:06 +0000 (13:21 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 20 Jul 2017 01:27:15 +0000 (21:27 -0400)
get_own_allocation's position is relative to the given widget's origin,
not the parent.

gtk/gtkrange.c

index 0a5fbc13bb59a805b3b727fb17313d9df3d9926d..839d22c0cd3d482b7e309479e61de3b752229d0d 100644 (file)
@@ -922,7 +922,7 @@ gtk_range_get_range_rect (GtkRange     *range,
   g_return_if_fail (GTK_IS_RANGE (range));
   g_return_if_fail (range_rect != NULL);
 
-  gtk_widget_get_own_allocation (range->priv->trough_widget, range_rect);
+  gtk_widget_get_outer_allocation (range->priv->trough_widget, range_rect);
 }
 
 /**